package com.example.vote.flow.mapper;

import com.example.vote.flow.pojo.entity.VoteOption;
import com.example.vote.flow.pojo.vo.VoteOptionSimpleVO;

import java.util.List;

public interface VoteOptionMapper {
    int insert(VoteOption voteOption);

    int deleteById(Long id);

    int deleteByVoteTopicId(Long voteTopicId);

    int updateById(VoteOption voteOption);

    VoteOptionSimpleVO selectById(Long id);

    List<VoteOptionSimpleVO> selectByVoteTopicId(Long voteTopicId);
}